import { axios, server, tcvod_server } from '../config';
export const getMinzu = () => {
  return axios.get('/api/minzu.json');
};

export const signup = data => {
  return server({
    method: 'post',
    url: '/register/teacher_Register.php',
    headers: {
      'Content-Type': 'multipart/form-data'
    },
    data
  });
};

export const getSignature = data => {
  return tcvod_server({
    method: 'post',
    url: '/getSignature',
    data
  });
};

export const confirmEvents = data => {
  return tcvod_server({
    method: 'post',
    url: '/confirmEvents',
    data
  });
};

export const getClass = () => {
  return tcvod_server({
    method: 'get',
    url: '/getClass'
  });
};

export const tSimpleCrouseUpload = data => {
  return server({
    method: 'post',
    url: '/client_teacher/t_upload_simple_crouse.php',
    headers: {
      'Content-Type': 'multipart/form-data'
    },
    data
  });
};
